import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const state = {
    userId: '', // 用户
    orderDetailsId: '' // 工单编号id

}
const getters = {
    userId: state => {
        return state.userId
    }
}
const mutations = {
    userIdFun(state, val) {
        state.userId = val
    },
    orderDetailsIdFun(state, val) {
        state.orderDetailsId = val
    }
}
const store = new Vuex.Store({
    state,
    getters,
    mutations
})
export default store